package com.jmb.api.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 
 * @TableName mock_hit_policy
 */
@TableName(value ="mock_hit_policy")
@Data
public class MockHitPolicy extends BaseEntity {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * api_id
     */
    @TableField(value = "api_id")
    private Integer apiId;

    /**
     * 0请求头1请求body2pathparams3请求queryparams
     */
    @TableField(value = "match_scope")
    private Integer matchScope;

    /**
     * 0固定值1包含2正则3jsonschema4xpath5jsonpath
     */
    @TableField(value = "match_type")
    private Integer matchType;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 值
     */
    @TableField(value = "value")
    private String value;

    /**
     * 0启用1禁用
     */
    @TableField(value = "status")
    private Integer status;
}